package com.dbtimer.dbupdatespring.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dbtimer.dbupdatespring.dao.*;
import com.dbtimer.dbupdatespring.entity.*;
import com.dbtimer.dbupdatespring.map.BaseConfigMap;
import com.dbtimer.dbupdatespring.service.BaseConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanMap;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author 11092
* @description 针对表【BaseConfig】的数据库操作Service实现
* @createDate 2022-04-15 14:55:02
*/
@Service("baseConfigService")
public class BaseConfigServiceImpl extends ServiceImpl<DmBaseConfigDao, BaseConfigEntity>
    implements BaseConfigService{

    @Autowired
    DmBaseConfigDao dmBaseConfigDao;
    @Autowired
    MysqlDataPointsDao mysqlDataPointsDao;
    @Autowired
    MysqlPointInfoImportantDao mysqlPointInfoImportantDao;
    @Autowired
    MysqlPointInfoStableDao mysqlPointInfoStableDao;
    @Autowired
    MysqlDataPointsOriginalDao mysqlDataPointsOriginalDao;


    /**
     * @Author swx
     * @Description //取出达梦数据库BaseConfig表中所有数据
     * @Date 23:35 2022/4/17
     * @Param []
     * @Return java.util.List<com.dbtimer.dbupdatespring.entity.BaseConfigEntity>
     */
    @Override
    public List<BaseConfigEntity> getAll(){
        QueryWrapper<BaseConfigEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.select();
        return dmBaseConfigDao.selectList(queryWrapper);
    }



}




